<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="app">

    <p v-if="seen">现在你看到我了</p>
    <a v-bind:href="url">...</a>
    <div @click="click1">
        <div @click.stop="click2">
            click me
        </div>
    </div>
</div>

<script type="text/javascript">
    var vm=new Vue({
        el: "#app",
        data:{
            seen:false,
            url: "https://www.baidu.com"
        },
        methods:{
            click1: function (){
                console.log("click1........");
            },
            click2: function (){
                console.log("click2 ........")
            }

        }
    })
</script>

</body>
</html>
